﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MP_PositionCommandLines.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.MP_PositionCommandLines" %>

<asp:Content 
    ID="Content1" 
    runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
        
    <title>โครงสร้างสายการบังคับบัญชา</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook"> 
        </telerik:RadAjaxLoadingPanel>
    
        <telerik:RadAjaxManager runat="server" ID="RadManager1" onajaxrequest="RadManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSplitter1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        <telerik:AjaxUpdatedControl ControlID="PanelTree" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="imgOrgChart" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                
                <telerik:AjaxSetting AjaxControlID="RadTreeView1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                
                <telerik:AjaxSetting AjaxControlID="RadTreeView2">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTreeView2" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                
                <telerik:AjaxSetting AjaxControlID="cbVersion">
                    <updatedcontrols>
                        <telerik:AjaxUpdatedControl ControlID="PanelTree" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="imgOrgChart" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </updatedcontrols>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnDeleteTree">
                    <updatedcontrols>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        <telerik:AjaxUpdatedControl ControlID="PanelTree" 
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="imgOrgChart" 
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                    </updatedcontrols>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="imgOrgChart">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="imgOrgChart" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript" src="../../Scripts/Common.js">
                
            </script>
        </telerik:RadCodeBlock>
    <asp:panel ID="Panel6" runat="server" CssClass="contentPanelPaddingTop5px">
    <table width="1000" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan ="3">
                <div class="moduleDivSlim850">
                    <div class="moduleDivBottom850">
                        <asp:Panel ID="Panel1" runat="server">
                            <table width="750" align ="center">
                                <tr>
                                <td align="left" class="formHeader">
                                        <asp:Label ID="lblHeader" runat="server" text="โครงสร้างสายการบังคับบัญชา"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td >
                                        &nbsp;&nbsp;
                                        <asp:Label ID="lblUpperText0" runat="server" Text = "ค้นหา"></asp:Label>
                                        &nbsp;
                                        <telerik:RadTextBox ID="txtSearch" Runat="server">
                                        </telerik:RadTextBox>
                                        &nbsp;<asp:ImageButton 
                                            ID="cmdSearch" 
                                            runat="server" 
                                            ImageUrl="~/App_UI/Images/Buttons/Magnifier.gif" 
                                            onclick="cmdSearch_Click" 
                                            ToolTip="กดปุ่มเพื่อเริ่มค้นหาข้อมูล" />
                                        &nbsp;
                                        <asp:ImageButton ID="cmdExpand" runat="server" 
                                            ImageUrl="../Images/Buttons/ExpandAll.gif" onclick="cmdExpand_Click" 
                                            ToolTip="ขยายทั้งหมด" Height="20px" style="width: 18px" />
                                        &nbsp;
                                        <asp:ImageButton ID="cmdCollapse" runat="server" Height="20px" 
                                            ImageUrl="../Images/Buttons/CollapseAll.gif" onclick="cmdCollapse_Click" 
                                            ToolTip="ย่อทั้งหมด" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </div>
                </div>
            </td>
            
        </tr>
        <tr>
            <td width="400" valign="top">
                    <div class="moduleDivSlim400">
                        <asp:Panel ID="Panel2" 
                            runat="server" 
                            CssClass="contentPaneDiv" 
                            Width="370px" Height="370px" ScrollBars="Auto">
                             <telerik:RadTreeView 
                                    ID="RadTreeView1" 
                                    DataTextField = "Name"
                                    DataFieldID = "Sequence"
                                    DataFieldParentID = "Parent"
                                    DataValueField = "Sequence"
                                    runat="server" 
                                    OnNodeClick="RadTreeView1_NodeClick"
                                    EnableDragAndDrop="True" 
                                    OnNodeDrop="RadTreeView1_NodeDrop"
                                    EnableDragAndDropBetweenNodes="true"
                                    OnNodeDatabound="RadTreeView2_NodeDataBound" 
                                    OnClientMouseOut="onNodeMouseOut" 
                                    OnClientMouseOver="onNodeMouseOver"                                    
                                    Skin="Outlook">
                                    <DataBindings>
                                        <telerik:RadTreeNodeBinding />
                                    </DataBindings>                                   
                                                                            
                                </telerik:RadTreeView>
                        </asp:Panel>
                    </div>
            </td>
            <td width="20">
            </td>
            <td valign="top">
                    <div class="moduleDivSlim400">
                        <asp:Panel ID="Panel4" 
                            runat="server" 
                            CssClass="contentPaneDiv"
                            Width="370px" 
                            Height="370px" 
                            ScrollBars="Auto">
                            <telerik:RadTreeView 
                                    ID="RadTreeView2" 
                                    DataTextField = "Name"
                                    DataFieldID = "Sequence"
                                    DataFieldParentID = "Parent"
                                    DataValueField = "Sequence"
                                    ToolTip = "JobDescription"
                                    runat="server" 
                                    EnableDragAndDrop="True" 
                                    OnNodeDrop="RadTreeView2_NodeDrop"
                                    EnableDragAndDropBetweenNodes="true"
                                    OnNodeDatabound="RadTreeView2_NodeDataBound" 
                                    OnClientMouseOut="onNodeMouseOut" 
                                    OnClientMouseOver="onNodeMouseOver"                                 
                                    Skin="Outlook">                                       
                                    <DataBindings>
                                        <telerik:RadTreeNodeBinding />
                                    </DataBindings>
                                </telerik:RadTreeView>
                        </asp:Panel>
                    </div>
            </td>
        </tr>
    </table>
    </asp:panel>
</asp:Content>
